package org.mango.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baidu.unbiz.fluentvalidator.annotation.FluentValid;
import org.mango.bean.DemoBean;
import org.mango.service.DemoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by meigang on 17/9/11.
 */
@Service
@Transactional
public class DemoServiceImpl implements DemoService {

    public void addDemo(@FluentValid DemoBean demoBean) {
        System.out.println("存入db"+JSONObject.toJSONString(demoBean));
    }
}
